package com.web.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lenovo
 * @Description
 * @Date2025-3-20 14:30
 * @RestController 让其他每个方法将返回值直接返回给客户端
 * @RestController=@Controller+@ResponseBody
 */
@CrossOrigin
@RestController
public class HelloController {

    @RequestMapping(path = "/hello",method = RequestMethod.GET)
    public String hello(){
        return "hello springMVC";
    }
}
